﻿
//开始上传
function Uploader_OnUploadStart() {
    btnUpload.SetEnabled(false);
}

//单文件长传完成
function Uploader_OnFileUploadComplete(args) {
    if (args.isValid) {
        var result = eval("(" + args.callbackData + ")");
        if (result.isSucess) {
            $.messager.show({
                title: '信息提示',
                msg: '导入成功！'
            });
            parent.gvwList.PerformCallback()
        } else {
            $.messager.show({
                title: '信息提示',
                msg: result.msg
            });
        }
    }
}

//多文件长传完成
function Uploader_OnFilesUploadComplete(args) {
    UpdateUploadButton();
}

//更新上传按钮启用状态
function UpdateUploadButton() {
    btnUpload.SetEnabled(uploader.GetText(0) != "");
}
